package com.tool;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * *********************************************
 * @author Administrator
 * @FileName StringUtil.java
 * @Description
 **********************************************
 */
public class StringUtil {
	public static final Logger LOG = LoggerFactory.getLogger(StringUtil.class);
	
	/**
	 * 处理html文本
	 * @param content
	 * @return
	 */
	public static String parseContent(String content){
		content = content.replace(",", "，");
		content = content.replace("&nbsp;", "");
		content = content.replaceAll("\t|\r|\n", "");
		content = content.replace(String.valueOf((char) 12288), "");
		content = content.replace(String.valueOf((char) 160), "");
		content = content.trim();
		
		return content;
	}
	
}
